<?php
/**
 * Created by YuanXiShop.
 * User: YuanXi
 * Date: 2021/6/1 0001
 * Time: 16:38
 */

namespace models;

use Medoo\Medoo;
class BaseDao extends Medoo
{
    function __construct()
    {
        // Connect the database.
        $options = [
            'type' => 'mysql',
            'host' => HOST,
            'database' => DBNAME,
            'username' => USER,
            'password' => PASS,
            'port' => PORT,
            'prefix' => TABPREFIX
        ];
        parent::__construct($options);
    }
}